#!/usr/bin/env python

def _(s): return s

import sys, wx
import frontend.dialogs.RemoveDatabase as RemoveDB
from ..mainWindow import MenuHandler

class RemoveDB:
    def __init__(self, mainWin):
        menuhdlr = MenuHandler.MenuHandler()
        dset = menuhdlr.MENU_NON_ESSENTIAL
        menuhdlr.setEnabled(dset, False)#mainWin.dbmgr.numDBs() > 0)
        
#        RemoveDB.RemoveDatabase(mainWin, mainWin.db)
#        d = RemoveDB.RemoveDatabase(mainWin, mainWin.dbmgr.dbNameTuples())
#        d.ShowModal()
#        r = d.removed()
#        mainWin.dbmgr.removeDBs(r)
#        mainWin.dbmgr.doMenu(mainWin.menuInfo)
#        mainWin.userSettings.removeDBs(r)
#        mainWin.enableMenuItems([150], mainWin.dbmgr.numDBs() > 0)
